package cn.touna.jss.modules.third.car300.entity;

import cn.touna.risk.api.contraints.DateCheck;
import cn.touna.risk.api.contraints.InSet;
import cn.touna.risk.api.domain.BaseDomain;
import org.hibernate.validator.constraints.Length;
import org.hibernate.validator.constraints.NotBlank;

import javax.validation.constraints.Digits;

/**
 * Created by Steve.Tao on 2017/8/10.
 */
public class Car300PriceRequestEntity extends BaseDomain {

    @NotBlank(message = "不能为空")
    @Digits(integer = 10, fraction = 0, message = "必须为大于0的整数")
    private String modelId;

    @NotBlank(message = "日期不能为空")
    @DateCheck
    private String regDate;

    @NotBlank(message = "不能为空")
    @Digits(integer = 2, fraction = 4, message = "里程必须为数字，在0.0001~99.9999万公里之间")
    private String mile;

    @NotBlank(message = "不能为空")
    @Length(min = 6, max = 6, message = "必须为6为数字的城市国标码")
    @Digits(integer = 6, fraction = 0, message = "必须为6为数字的城市国标码")
    private String zone;

    //    @InSet(enumSet = {"米色","棕色","金色","紫色","巧克力色","黑色","蓝色","灰色","绿色","红色","橙色","白色","香槟色","银色","黄色"})
    @NotBlank(message = "颜色不能为空")
    private String color;

    @InSet(enumSet = {"优", "良", "中", "差"})
    private String interior;

    @InSet(enumSet = {"优", "良", "中", "差"})
    private String surface;

    @InSet(enumSet = {"优", "良", "中", "差"})
    private String workState;

    private String transferTimes;
    private String type;
    /**
     * 默认为che300
     */
    private String modelType = "che300";
    private String metaType;

    public String getModelId() {
        return modelId;
    }

    public void setModelId(String modelId) {
        this.modelId = modelId;
    }

    public String getRegDate() {
        return regDate;
    }

    public void setRegDate(String regDate) {
        this.regDate = regDate;
    }

    public String getMile() {
        return mile;
    }

    public void setMile(String mile) {
        this.mile = mile;
    }

    public String getZone() {
        return zone;
    }

    public void setZone(String zone) {
        this.zone = zone;
    }

    public String getColor() {
        return color;
    }

    public void setColor(String color) {
        this.color = color;
    }

    public String getInterior() {
        return interior;
    }

    public void setInterior(String interior) {
        this.interior = interior;
    }

    public String getSurface() {
        return surface;
    }

    public void setSurface(String surface) {
        this.surface = surface;
    }

    public String getWorkState() {
        return workState;
    }

    public void setWorkState(String workState) {
        this.workState = workState;
    }

    public String getTransferTimes() {
        return transferTimes;
    }

    public void setTransferTimes(String transferTimes) {
        this.transferTimes = transferTimes;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public String getModelType() {
        return modelType;
    }

    public void setModelType(String modelType) {
        this.modelType = modelType;
    }

    public String getMetaType() {
        return metaType;
    }

    public void setMetaType(String metaType) {
        this.metaType = metaType;
    }
}
